let webdriver = require('selenium-webdriver'),
    By = webdriver.By,
    until = webdriver.until;

let driver = new webdriver.Builder()
    .forBrowser('internet explorer')
    .build();

(async () => {
    await driver.get('https://www.zhilizhili.com');
    try {
        let kwshouldnotchuxian = await driver.findElement(By.id('kw'));
        console.log(kwshouldnotchuxian);
    } catch(err) {
        if (err.name === "NoSuchElementError") {
            console.log("nimabidwe")        
        }    
    }    
    driver.quit();
})()